package com.job.blossom.work0711;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-11 19:35:49
 */
public class Cup {
    private String name;
    private Double price;// 引用类型 可以 接收null;
    private Double capacity;
    private String color;



    public Cup() {
    }



    public Cup(String name, Double price, Double capacity, String color) {
        this.name = name;
        this.price = price;
        this.capacity = capacity;
        this.color = color;
    }
    @Override
    public String toString() {
        return "Cup{"+"name:"+name+"\""+
                ",price= "+price+
                ",capacity="+capacity+
                ",color="+color+"\""+"}";
    }



}
